export const MenuTableColumns = shallowRef<any[]>([
  {
    title: '菜单名称',
    dataIndex: 'menuTitle',
    width: 180,
  },
  {
    title: '图标',
    dataIndex: 'icon',
    width: 130,
  },
  {
    title: '路由',
    dataIndex: 'routerPath',
    width: 300,
  },
  {
    title: '组件',
    dataIndex: 'componentPath',
    width: 300,
  },
  {
    title: '排序',
    dataIndex: 'sort',
    align: 'center',
    width: 64,
  },
  {
    title: '状态',
    dataIndex: 'stateId',
    width: 100,
  },
  {
    title: '创建时间',
    dataIndex: 'createdDate',
    width: 180,
  },
  {
    title: '操作',
    dataIndex: 'action',
    width: 150,
  },
])

export const ComponentTableColumns = shallowRef([
  {
    title: '序号',
    dataIndex: 'indexNo',
    width: 36,
  },
  {
    title: '组件名称',
    dataIndex: 'componentTitle',
    width: 100,
  },
  {
    title: '组件编码',
    dataIndex: 'componentCode',
    width: 80,
  },
  {
    title: '备注',
    dataIndex: 'note',
    ellipsis: { showTitle: true },
    width: 150,
  },
  {
    title: '排序',
    dataIndex: 'sort',
    width: 36,
  },
  {
    title: '状态',
    dataIndex: 'stateId',
    width: 64,
  },
  {
    title: '创建时间',
    dataIndex: 'createdDate',
    width: 120,
  },
  {
    title: '操作',
    dataIndex: 'action',
    width: 80,
  },
])

export const ApiTableColumns = shallowRef([
  {
    title: '序号',
    dataIndex: 'indexNo',
    width: 36,
  },
  {
    title: '接口名称',
    dataIndex: 'apiTitle',
    width: 150,
  },
  {
    title: '接口PATH',
    dataIndex: 'apiUrl',
    ellipsis: { showTitle: true },
    width: 200,
  },
  {
    title: '排序',
    dataIndex: 'sort',
    width: 36,
  },
  {
    title: '状态',
    dataIndex: 'stateId',
    width: 100,
  },
  {
    title: '创建时间',
    dataIndex: 'createdDate',
    width: 120,
  },
  {
    title: '操作',
    dataIndex: 'action',
    width: 80,
  },
])

export const ApiNoMenuTableColumns = shallowRef([
  {
    title: '序号',
    dataIndex: 'indexNo',
    width: 36,
  },
  {
    title: '接口名称',
    dataIndex: 'apiTitle',
    ellipsis: { showTitle: true },
    width: 150,
  },
  {
    title: '接口PATH',
    dataIndex: 'apiUrl',
    ellipsis: { showTitle: true },
    width: 200,
  },
  {
    title: '排序',
    dataIndex: 'sort',
    width: 36,
  },
  {
    title: '创建时间',
    dataIndex: 'createdDate',
    width: 120,
  },
  {
    title: '操作',
    dataIndex: 'action',
    width: 80,
  },
])
